package com.huluobo.base.net

import com.huluobo.base.bean.Res
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

/**
 *  Created by LC on 2024/8/8.
 */
interface ApiService {
    @POST(Const.URL_SIGN_IN)
    suspend fun signStart(@Body body: RequestBody): Res<String>

    @POST(Const.URL_SIGN_OUT)
    suspend fun signEnd(@Body body: RequestBody): Res<String>

    @POST(Const.URL_NEWS)
    suspend fun getAllNews(@Body body: RequestBody): Res<String>

    @POST(Const.URL_ADD_NEWS)
    suspend fun addNews(@Body body: RequestBody): Res<String>

    @POST(Const.URL_GET_ALL_REPAIR)
    suspend fun getAllRepair(): Res<String>
}